home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9668 < prev    next >
Encoding:
Text File  |  1996-08-05  |  974 b   |  30 lines

  1. Newsgroups: comp.lang.c++
  2. Path: yama.mcc.ac.uk!liv!news
  3. From: nickc@liv.ac.uk (Spider plant breeding program)
  4. Subject: classes nested within template classes
  5. Message-ID: <NICKC.96Mar3183317@uxe.liv.ac.uk>
  6. Sender: news@liverpool.ac.uk (News System)
  7. Nntp-Posting-Host: uxe.liv.ac.uk
  8. Organization: M-6 M-4 M-x hanoi
  9. Date: Sun, 3 Mar 1996 18:33:17 GMT
  10.  
  11. (Yes, the problem was found with a linked list!)
  12. The SUN C++ compiler I'm using refuses to allow non-inline functions in classes
  13. nested with template classes. It generates errors of the form:
  14.  
  15. "linkedlist.h", line 30: Error: Member functions in a class local to a template
  16. must be defined in the class.
  17.  
  18. Should I be able to have non-inline functions within classes local to a template
  19.  
  20. (is the compiler again demonstrating it's usual deficiencies with nested
  21. classes)
  22.  
  23. or does the standard preclude them?
  24.  
  25. Thanks for any help, sorry if this is in the wrong C++ group
  26.  
  27. Nicholas Clark
  28. -- 
  29. C:\> ECHO f 0000:0000 ffff 66 | DEBUG
  30.